package com.po;

import java.sql.Date;

public class Person {

	private int id;
	private String pName;
	private Date birthday;
	private int tel;
	private int departmentId;
	private double salay;

	private Department department;

	public Person() {

	}

	public Person(String pName, Date birthday, int tel, int departmentId, double salay) {
		super();
		this.pName = pName;
		this.birthday = birthday;
		this.tel = tel;
		this.departmentId = departmentId;
		this.salay = salay;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getpName() {
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getTel() {
		return tel;
	}

	public void setTel(int tel) {
		this.tel = tel;
	}

	public int getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(int departmentId) {
		this.departmentId = departmentId;
	}

	public double getSalay() {
		return salay;
	}

	public void setSalay(double salay) {
		this.salay = salay;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

}
